﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Master_Page/Master_IPORT.Master"
    CodeBehind="Slop.aspx.vb" Inherits="I_PORT.Slop" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script type="text/javascript" language="javascript">
        function checkNumber(e)
{
var keycode;

if (window.event) keycode = window.event.keyCode; // ใช้ IE อ่ะ

else if (e) keycode = e.which; // ใช้ Firefox เน่าะ

 if (((keycode > 47) && (keycode < 58))||(keycode == 190)||(keycode == 46))
 {
 return true;
 }
return false;
}</script>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                    <table width="100%" border="0" cellpadding="2" cellspacing="0">
                        <tr>
                            <td style="height: 5px;">
                                <img src="../Image/space.gif" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="width: 220px;">
                                <asp:Label ID="lbt" runat="server" SkinID="lbtxt" Text="DATE :"></asp:Label>&nbsp;
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtDate" runat="server" Width="80px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="ImgDate" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;
                 <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate" Format="dd MMM yyyy" PopupButtonID="ImgDate">
                 </asp:CalendarExtender>&nbsp;<asp:Button ID="btnSearch"
                                    runat="server" CssClass="ButtonStyle" Text="Search" />
                            </td>
                        </tr>
                    </table>
                    <table width="100%" border="0" cellpadding="2" cellspacing="0">
                        <tr>
                           <td align="right"><asp:Label ID="lbDateSHow" runat="server" SkinID="lbtxt" ></asp:Label>&nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right">
                            <asp:Panel ID="panelGridItem" runat="server" Width="900px" ScrollBars="Horizontal">
                            <asp:GridView ID="gridItem" Width="100%" runat="server" SkinID="gridblueNoPage" DataKeyNames="Slop_Code"
                                    AutoGenerateColumns="False">
                                    <Columns>
                                        <asp:BoundField HeaderText="AMOUNT" DataField="Slop_Name"  ItemStyle-HorizontalAlign="Center"  ItemStyle-Wrap="false" />
                                        <asp:BoundField HeaderText="UNIT"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="AMOUNT"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                         <asp:BoundField HeaderText="AMOUNT"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:TemplateField HeaderText="SLOP" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="false">
                                            <ItemTemplate>
                                               <asp:RadioButtonList id="radioAction" runat="server" SkinID="raio" >
                                                  <asp:ListItem Value="L">Line</asp:ListItem>
                                                  <asp:ListItem Value="H">Hose</asp:ListItem>
                                               </asp:RadioButtonList>
                                               <asp:TextBox ID="txtPhysical" style="text-align:right;" runat="server" Width="95%" onkeypress="return checkNumber(this);" ></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Remark" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="250px" ItemStyle-Wrap="false">
                                            <ItemTemplate>
                                               <asp:TextBox ID="txtRemark"  runat="server" Width="240" TextMode="MultiLine" Height="40px" ></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </asp:Panel>
                                
                            </td>
                        </tr>
                        <tr>
                          <td align="right"><asp:Label ID="labelRed" runat="server" Text="*** กรณีเป็นการเติมเข้า Slop จะต้องทำการระบุว่ารับมาจาก Line หรือ Hose" SkinID="lbtxtNoColor" ForeColor="Red" ></asp:Label>&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="right"><asp:Button ID="btnSave" runat="server" CssClass="ButtonStyle" Text="Save" />
                             <asp:Button ID="btnPrint" runat="server" CssClass="ButtonStyle" Text="Print" />
                          </td>
                        </tr>
                         <tr>
                            <td style="height: 5px;">
                                <img src="../Image/space.gif" />
                            </td>
                        </tr>
                    </table>
            </td>
        </tr>
    </table>
</asp:Content>
